SEND NET MESSAGE MEMBLOCK

This command will send a message containing a memblock to the specified player.

  Syntax
SEND NET MESSAGE MEMBLOCK Player Number, Memblock Number
SEND NET MESSAGE MEMBLOCK Player Number, Memblock Number, Guarentee Packet
  Parameters
Player Number
Integer
The Player Number must be an integer value and an existing player in the net game. The memblock must exist or the command will fail. A Player Number of zero will send the message to all players except you
Memblock Number
Integer
The number of the memblock to send
Guarentee Packet
Integer
The Guarantee Packet Flag, if set to one, will ensure the message is received and will not be dropped due to slow system performance

  Returns

This command does not return a value.

  Description

The Player Number must be an integer value and an existing player in the net game. The memblock must exist or the command will fail. A Player Number of zero will send the message to all players except you. The Guarantee Packet Flag, if set to one, will ensure the message is received and will not be dropped due to slow system performance.

  Example Code
rem Network game can communicate sounds, images and 3D data
while inkey$()<>"z"
cls
print "SENDING..."
GuarenteePacket=1
make memblock 1, 1024
send net message memblock 0, 1, GuarenteePacket
delete memblock 1
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=4
net message memblock 1
delete memblock 1
endif
get net message
endwhile
endwhile
  See also

MULTIPLAYER Commands Menu
Index